<template>
	<view class="u-p-20">
		<view class="bg_FFFFFF u-p-20 u-b-r-20">
			<view class="u-flex">
				<u-image :src='info.avatar' shape="circle" width='120rpx' height='120rpx'></u-image>
				<view class="u-m-l-20">
					<view class="">{{info.name}}</view>
					<view class="u-m-t-20">{{info.mobile}}</view>
				</view>
				
			</view>
			<view class="u-m-t-30 u-w-580 u-auto u-h-580 bg_FFFFFF u-p-20 u-flex-col u-col-center" style="border: 4rpx solid #EF9061;">
				<u-image :src='info.qrcode_url'  width='510rpx' height='510rpx'></u-image>
				
			</view>
			<view class="u-flex-col u-col-center u-p-30" style="color: #FC3533;">扫描上方二维码，向我转赠积分</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:'',
				params:{
					type:'score',
					jump_url:'/subcontract/myscore/scoregive/scoregive'
				},
				
			}
		},
		onLoad(o) {
			this.params.id=o.member_id || ''
			this.params.type=o.type
		},
		onShow() {
			this.transfer_qrcode()
			
		},
		methods: {
			transfer_qrcode(){
				this.$api.transfer_qrcode(this.params,res=>{
					if (res.data.code == 1) {
						this.info=res.data.data
					}
				})
			},
			
			
		}
	}
</script>

<style scoped>
page{
	background: #f5f5f5;
}
</style>
